<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:icecore="http://www.icefaces.org/icefaces/core"
	xmlns:ace="http://www.icefaces.org/icefaces/components"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
<f:view locale="#{localeBean.currentLocale}" />
<h:head>
	<title>MOJ</title>
</h:head>
<h:body>
	<ui:composition>

			<h:form >
			<ice:messages/>
			<ace:panel>
				<ice:outputLabel value="#{msgs['drawingdocument.lable.title']}" />
				<ice:panelGrid columns="4" >
					<ice:outputLabel value="#{msgs['realtydocument.lable.realtyNo']}" />
					<ice:inputText value="#{drawingDocumentBean.drawingDocument.realtyRegistrationNumber}" />
					<ice:outputLabel value="#{msgs['realtydocument.lable.realtyYear']}" />
					<ice:inputText value="#{drawingDocumentBean.drawingDocument.documentYear}"/>
					<ice:commandButton value="#{msgs['btn.label.save']}" action="#{drawingDocumentBean.save}" />
					<ice:commandButton value="#{msgs['btn.label.scan']}"/>				
				
					<ace:fileEntry id="file-entry" relativePath="/files/" 
						label="file uploaded"
						maxFileCount="1"
						maxFileCountMessage="Limited to 10 files uploaded concurrantly."
						fileEntryListener="#{drawingDocumentBean.fileListener}"
						maxFileSize="6291456"
						maxFileSizeMessage="Submitted file is too large."
						maxTotalSize="18874368"
						maxTotalSizeMessage="Total size of submitted files is too large."
						required="false"
						requiredMessage="The file is required to submit this form."
						useOriginalFilename="true" useSessionSubdir="true" />
					<h:commandButton value="#{msgs['btn.label.upload']}" type="submit"/>
				</ice:panelGrid>
				</ace:panel>
			
		</h:form>

	</ui:composition>
</h:body>
</html>